﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace dkGameTool
{
    public partial class SkillForm : Form
    {
        public SkillForm(int typ, string deviceId)
        {
            InitializeComponent();

            if (typ == 0)
            {
                chooseSkillFrm chooseSkillFrm1 = new chooseSkillFrm(deviceId);
                chooseSkillFrm1.Location = new Point(211, 97);
                chooseSkillFrm1.Name = "chooseSkillFrm1";
                chooseSkillFrm1.Size = new Size(852, 471);
                chooseSkillFrm1.TabIndex = 0;
                Controls.Add(chooseSkillFrm1);
                chooseSkillFrm1.Dock = DockStyle.Fill;
            }
            else if (typ == 1) 
            {
                chooseChallenge chooseSkillFrm1 = new chooseChallenge(deviceId);
                chooseSkillFrm1.Location = new Point(211, 97);
                chooseSkillFrm1.Name = "chooseSkillFrm1";
                chooseSkillFrm1.Size = new Size(852, 471);
                chooseSkillFrm1.TabIndex = 0;
                Controls.Add(chooseSkillFrm1);
                chooseSkillFrm1.Dock = DockStyle.Fill;
            }
            else if (typ == 2)
            {
                addGkfrm addgkfrm = new addGkfrm(deviceId);
                addgkfrm.Location = new Point(211, 97);
                addgkfrm.GkName = "addgkfrm";
                addgkfrm.Size = new Size(852, 471);
                addgkfrm.TabIndex = 0;
                Controls.Add(addgkfrm);
                addgkfrm.Dock = DockStyle.Fill;
            }

        }

        private void SkillForm_Load(object sender, EventArgs e)
        {

        }
    }
}
